package com.ms.demo;

/**
 * @description: 创建实现了 Order 接口的实体类
 * @author: ms
 * @create: 2022-10-27 17:02
 */
public class BuyStock implements Order {

    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}